<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.fc.util.*" %>
<%@ page import="com.fc.model.Admin" %>
<%@ page import="com.fc.control.AdminControl" %>
<%@ include file="../login/login_check.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>admin_add</title>
<script type="text/javascript">
		function check()
		{
			    if(document.form1.user_name.value=="")
				{
					alert("请输入用户名！");
					document.form1.user_name.focus();
					return;
				}
				else if(document.form1.user_pwd2.value=="")
				{
					alert("请输入新密码！");
					document.form1.user_pwd2.focus();
					return;
				}
				else if(document.form1.user_pwd3.value=="")
				{
					alert("请输入确认密码！");
					document.form1.user_pwd3.focus();
					return;
				}
				else
				{document.form1.submit();}
		} 
</script>     
</head>
<body>
 <%
      request.setCharacterEncoding("UTF-8");
      int id=ParamUtil.getInt(request,"id",0);
  %>
 <form action="admin_add_do.jsp" name="form1" method="post">
  	<table width="400" border="0" cellpadding="2" cellspacing="0">
  	          <tr>
  	            <td>用  户  名</td>
  	            <td><input type="text" name="user_name"></td>
  	          </tr>
  	          
			  <tr>
			    <td>密          码</td>
			    <td><input type="password" name="user_pwd2"></td>
		      </tr>
			  <tr>
			    <td>确认密码</td>
			    <td><input type="password" name="user_pwd3"></td>
		      </tr>
		      <tr>
  	            <td>电话号码</td>
  	            <td><input type="text" name="phone"></td>
  	          </tr>
  	          <tr>
  	            <td>身份证号</td>
  	            <td><input type="text" name="idcard"></td>
  	          </tr>
  	          
  	          <tr>
  	            <td>性别</td>
  	             <td><input type="radio" name="sex" value="1" checked/>男
			    <input name="sex" type="radio" value="2" />女</td>
  	          </tr>
  	          <tr>
  	            <td>用户类型</td>
  	            <td><input type="radio" name="role" value="1" checked>分店长
  	            <input type="radio" name="role" value="2">总店长
  	            <input type="radio" name="role" value="3">管理员</td>
  	          </tr>
    </table>
    <input type="button" value="提交" onClick="check()" />
    <input type="reset" name="Reset" value="重置" />
 </form>
</body>
</html>